-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POC - Add tooltip to modal, Modal provider (for computer challenge, language picker, game fork) #2845
base: devel
Are you sure you want to change the base?
Conversation
Uffizzi Ephemeral Environment Deploying☁️ https://app.uffizzi.com/github.com/online-go/online-go+com/pull/2845 ⚙️ Updating now by workflow run 11506001637. What is Uffizzi? Learn more! |
I'm switching this to draft until while you work on it, feel free to change it back to ready for merge when you're ready |
1e029ea
to
cdf2655
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from the test message, it seems to function well to me. @GreenAsJade does all of this look good from an RDH perspective?
@@ -25,6 +25,9 @@ module.exports = { | |||
"src", | |||
"node_modules" | |||
], | |||
"moduleNameMapper": { | |||
'^@/(.*)': '<rootDir>/src/$1', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing the tests!
|
||
export function ModalHelp(): JSX.Element { | ||
return ( | ||
<HelpFlow debug={true} id="modal-help" showInitially={true}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love the look of Modal implementation now - it cleaned up heaps since last review.
The "test for whether RDH works" is not implemented in the normal RDH way, and it would probably be worth doing it "the RDH way" to totally confirm everything works.
Instead of instantiating a component like ActivateTooltip, you want to get registerTargetItem
from the DynamicHelp context and use that to point to the react component that should be annotated. You don't need to "trigger the flow" if you have ShowInitially set, which you do.
This is probably most simply demonstrated in OnlineLeagueSpectatorLanding.tsx and src/views/HelpFlows/OOLSpectatorIntro.tsx .
@andrewjcasal I realised an even better way of testing this is to get rid of the TBD in GameLog :) I thought "oh, I will quickly do that right now", but of course that requires GameLogModal to be a new modal, which is not a 2 minute job. I can do it when I have a moment soonish, or if you add it to the PR, I'll test it out. |
…er (for computer challenge, language picker, game fork)
See above PR: I made GameLogModal use this, which lets it have RDH about autoscore (🎉). I took out the "test case" RDH, and did a slight refactor as per comment on that commit. |
Marking as draft while stuff is being worked on, mark as ready to merge when everything is set, and thanks again! |
This pull request has been marked stale and will be closed soon without further activity. Please update the PR or respond to this comment if you're still interested in working on this. |
@anoek I wonder if things are stable enough to incorporate this? |
Seemed like it was close from your comments but there's been a lot of silence since then.. |
I think it actually was "hey, I've made this all working and nice, what do you all think?" 😝 |
I've created at PR for the changes I suggested: #2901 @andrewjcasal might prefer to pull them onto this PR and have this one merged - I'm fine with either way! |
Fixes #
Screen.Recording.2024-10-05.at.3.44.28.PM.mov
Background
Proposed Changes